<template>
	<!-- 代付款，待评价，代使用界面同用tabbar选项卡 -->
	<view>
		<u-tabs :list="list" :is-scroll="false" :current="current" @change="change" active-color="red"></u-tabs>
	</view>
</template>

<script>
	import {
		eventBus
	} from '../../main.js'
	export default {
		data() {
			return {
				list: [{
						name: '全部',
						// 徽标
						count: 0
					},
					{
						name: '待付款',
						// 徽标
						count: 0
					}, {
						name: '待发货',
						// 徽标
						count: 0
					}, {
						name: '待收货',
						// 徽标
						count: 0
					}, {
						name: '待评价',
						// 徽标
						count: 0
					}
				],
				current: 0,
				
			}
		},
		methods: {
			change(index) {
				// console.log(index)
				this.current = index;
				this.$emit('slotIndex',this.current)
			},	
		},
		created() {
			this.current=this.$route.query.index
		},
		mounted(){
		},
		watch:{	
		}
	}
</script>

<style>
</style>
